<?php
	require('util/ClientUtil.php');
	if($_POST){
			$username = trim($_POST['username']);
			$password = trim($_POST['password']);
			if($password==''||$username==''){
				exit('请填写数据');
			}

			$userInfo['username'] = $username;
			$userInfo['password'] = $password;
			$userInfo['__tbname'] = 'user_reg';

			echo 	(new ClientUtil())->callForReturn(json_encode($userInfo));
	}

?>

<!DOCTYPE html>
<html>
<head>
	<title>注册</title>
</head>
<body>
		<form method="post" >
			
			<input type="text" name="username">
			<input type="text" name="password">
			<input type="submit" value="提交">

		</form>
</body>
</html>
	
